AnimationEvent ev = new AnimationEvent();
ev.time = 0.0f;
ev.functionName = "PlayStepSound";
ev.floatParameter = 1.0f;		
GetComponent<Animation>()["run"].clip.AddEvent(ev);
AnimationEvent ev2 = new AnimationEvent();
ev2.time = GetComponent<Animation>()["run"].clip.length / 2.0f;
ev2.functionName = "PlayStepSound";
ev2.floatParameter = 1.06f;
GetComponent<Animation>()["run"].clip.AddEvent(ev2);
// ---------------------
public void PlayStepSound(AnimationEvent ev)
{
	this.m_audio.PlayOneShot(this.m_footstep,1.0f,0.0f,ev.floatParameter);
}